package cn.snowsoft.iot.module.warning.controller.admin.warning.record;

import cn.snowsoft.iot.framework.common.pojo.CommonResult;
import cn.snowsoft.iot.module.message.api.send.SendApi;
import cn.snowsoft.iot.module.message.api.send.dto.SendMessageRequestDto;
import cn.snowsoft.iot.module.warning.controller.admin.warning.record.vo.WarningRecordDetailReqVO;
import cn.snowsoft.iot.module.warning.dal.dataobject.warning.record.OutPutRecord;
import cn.snowsoft.iot.module.warning.service.warning.record.IOutPutRecordService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Tag(name = "管理后台 - 北向输出记录")
@RestController
@RequestMapping("/warning/outPutRecord")
public class OutPutRecordController {
    @Autowired
    private IOutPutRecordService recordService;



    @PostMapping("/saveOutPutRecord")
    @ApiOperationSupport(order = 1)
    @Operation(summary = "新增告警记录")
    public CommonResult saveOutPutRecord(@RequestBody OutPutRecord outPutRecord) {

        recordService.saveOutPutRecord(outPutRecord);

        return CommonResult.success("保存成功");
    }
}
